<template>
  <div class="app-container home">
    <el-row :gutter="20">
      <el-col :sm="24" :lg="24">
        <blockquote class="text-warning" style="font-size: 14px">
          欢迎来到我们的求职招聘平台！在这里，你可以找到最新的工作机会，提升你的职业生涯。
        </blockquote>
        <hr />
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :sm="24" :lg="12" style="padding-left: 20px">
        <h2>求职招聘平台</h2>
        <p>
          我们致力于为求职者和招聘者提供一个高效、便捷的交流平台。无论你是正在寻找新机会的求职者，还是希望找到合适人才的招聘者，我们都能为你提供最优质的服务。
        </p>
        <p>
          <b>当前版本:</b> <span>v{{ version }}</span>
        </p>
        <p>
          <el-tag type="success">免费使用</el-tag>
        </p>
        <p>
          <el-button
            type="primary"
            size="mini"
            icon="el-icon-search"
            plain
            @click="goTarget('#browse-jobs')"
            >浏览职位</el-button
          >
          <el-button
            size="mini"
            icon="el-icon-edit"
            plain
            @click="goTarget('#post-job')"
            >发布职位</el-button
          >
        </p>
      </el-col>

      <el-col :sm="24" :lg="12" style="padding-left: 50px">
        <el-row>
          <el-col :span="12">
            <h2>我们的优势</h2>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="6">
            <h4>求职者</h4>
            <ul>
              <li>海量职位</li>
              <li>精准匹配</li>
              <li>简历优化</li>
              <li>职业指导</li>
              <li>...</li>
            </ul>
          </el-col>
          <el-col :span="6">
            <h4>招聘者</h4>
            <ul>
              <li>高效招聘</li>
              <li>智能推荐</li>
              <li>企业展示</li>
              <li>数据分析</li>
              <li>...</li>
            </ul>
          </el-col>
        </el-row>
      </el-col>
    </el-row>
    <el-divider />
    <el-row :gutter="20">
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
            <span>最新职位</span>
          </div>
          <div class="body">
            <p>职位1: 软件工程师</p>
            <p>职位2: 产品经理</p>
            <p>职位3: 数据分析师</p>
            <p>职位4: 设计师</p>
            <p>职位5: 市场营销</p>
            <p>职位6: 财务分析师</p>
            <p>职位7: 销售代表</p>
            <p>职位8: 客服专员</p>
            <p>职位9: 物流经理</p>
            <p>职位10: 教育培训师</p>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
            <span>联系我们</span>
          </div>
          <div class="body">
            <p>
              <i class="el-icon-phone"></i> 电话：123-456-7890
            </p>
            <p>
              <i class="el-icon-message"></i> 邮箱：contact@joblink.com
            </p>
            <p>
              <i class="el-icon-location"></i> 地址：某某市某某区某某路123号
            </p>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
            <span>平台公告</span>
          </div>
          <div class="body">
            <p>公告1: 新增多个行业职位</p>
            <p>公告2: 平台维护通知</p>
            <p>公告3: 新功能上线</p>
            <p>公告4: 用户反馈改进</p>
            <p>公告5: 招聘会预告</p>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "3.8.9"
    };
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    }
  }
};
</script>

<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>
